<?php
/**
 *	[(levrobot.install)] (C)2013-2099 Powered by BBB.Levme.com.
 *	Version: 1.0.0
 *	Date: 2013-5-19 16:01
 */

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

$sql = <<<EOF

DROP TABLE IF EXISTS `pre_lev_bank_user`;
CREATE TABLE `pre_lev_bank_user` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `uid` int(10) NOT NULL DEFAULT '0',
  `bbsname` varchar(255) NOT NULL,
  `rname` varchar(255) NOT NULL,
  `mobile` varchar(255) NOT NULL,
  `qq` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `yuemoney` decimal(10, 2) NOT NULL DEFAULT '0.00',
  `getmoney` decimal(10, 2) NOT NULL DEFAULT '0.00',
  `contents` text,
  `settings` text,
  `uptime` int(10) NOT NULL DEFAULT '0',
  `addtime` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) TYPE=MyISAM;

DROP TABLE IF EXISTS `pre_lev_bank_log`;
CREATE TABLE `pre_lev_bank_log` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `uid` int(10) NOT NULL DEFAULT '0',
  `bbsname` varchar(255) NOT NULL,
  `codenum` varchar(255) NOT NULL,
  `types` int(10) NOT NULL DEFAULT '0',
  `bankid` int(10) NOT NULL DEFAULT '0',
  `money` decimal(10, 2) NOT NULL DEFAULT '0.00',
  `per` decimal(10, 2) NOT NULL DEFAULT '0.00',
  `bankinfo` text,
  `contents` text,
  `status` tinyint(1) NOT NULL default '0',
  `uptime` int(10) NOT NULL DEFAULT '0',
  `addtime` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) TYPE=MyISAM;

EOF;

runquery($sql);
$finish = true;

?>